package com.lijin.batchsys.framework.common;

/**
 * Description: 常量类
 *
 * (C) Copyright of China UnionPay Co., Ltd. 2010.
 *
 */
public class BatchSysConstants {

	/**
	 * 上下文相关字符串常量
	 */
	public static final String BATCH_CONTEXT_KEY = "BATCH_CONTEXT";
	public static final String CONTEXT_EXCEPTION_KEY = "EXCEPTION";
	public static final String CONTEXT_ERR_MSG_KEY = "CONTEXT_ERR_MSG";
	public static final String CONTEXT_DESC_KEY = "CONTEXT_DESC";
	
	// 定时器任务拉起的批次号
	public static final String SCHEDULE_BATCH_NO_KEY = "SCHEDULE_BATCH_NO";
	
	// 错误信息最大长度
	public static final int ErrMessageLength = 1024;
	
	// 分页信息常量
	public static final String COUNT_SQL = "countSQL";
	public static final String PAGE_SQL  = "pageSQL";
	
	// 批次执行周期类型
	public static final String DAILY_ONE_TIME = "DAILY_ONE_TIME";  // 每天按照指定的时间点执行一次
	public static final String DAILY_MULTI_TIMES = "DAILY_MULTI_TIMES"; // 每天按照指定的多个时间点执行多次
	public static final String CYCLING = "CYCLING"; // 周期性执行
	
	// 数据库类型
	public static final String DB_TP_DB2 = "db2";
	public static final String DB_TP_MYSQL = "mySql";

	// 表名的KEY，用户获取配置的表名
	public static final String TBL_NM_KEY_BATCH_INFO = "BATCH_INFO"; // 批量配置信息表
	public static final String TBL_NM_KEY_BATCH_JOB_INFO = "BATCH_JOB_INFO"; // 任务信息表表名
	public static final String TBL_NM_KEY_BATCH_STEP_INFO = "BATCH_STEP_INFO"; // 任务步骤信息表表名
	public static final String TBL_NM_KEY_BATCH_EXEC_LOG = "BATCH_EXEC_LOG"; // 批量执行记录日志表表名
	public static final String TBL_NM_KEY_BATCH_EXEC_LOG_DETAIL = "BATCH_EXEC_LOG_DETAIL"; // 批量执行记录详情表表名
	
	public static final String REC_VALID = "1"; // 记录有效
	public static final String REC_INVALID = "0"; // 记录无效
}
